package com.yonyou.pmclouds.safetyrectification.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.safetyrectification.entity.SafetyRectificationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 安全整改数据库mapper
 *
 * @author th
 * @date 2019/10/24 13:54
 */
@Mapper
public interface SafetyRectificationMapper extends BaseMapper<SafetyRectificationVO> {

    List<SafetyRectificationVO> getByProject(@Param("pkProject") String pkProject, @Param("billStatus") Byte billStatus);

    int countByCondition(@Param("pkProjects") String[] pkProjects,
                         @Param("creators") String[] creators,
                         @Param("startDate") String startDate,
                         @Param("endDate") String endDate,
                         @Param("billStatus") int[] billStatus);

    SafetyRectificationVO[] queryByCondition(@Param("pkProjects") String[] pkProjects,
                                             @Param("creators") String[] creators,
                                             @Param("startDate") String startDate,
                                             @Param("endDate") String endDate,
                                             @Param("billStatus") int[] billStatus,
                                             @Param("start") int start,
                                             @Param("size") int size);
}
